﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Shapes;
using Nox.Amuse.ViewModel;

namespace Nox.Amuse.View
{
    /// <summary>
    /// Interaction logic for UpdateStatusDialog.xaml
    /// </summary>
    public partial class UpdateStatusDialog : Window
    {
        public UpdateStatusDialog()
        {
            InitializeComponent();
            this.Loaded += new RoutedEventHandler(UpdateStatusDialog_Loaded);
            this.Closed += new EventHandler(UpdateStatusDialog_Closed);
        }

        void UpdateStatusDialog_Closed(object sender, EventArgs e)
        {
            UpdateViewModel.CurrentUpdateViewModel.IsStatusDialogOpen = false;
        }

        void UpdateStatusDialog_Loaded(object sender, RoutedEventArgs e)
        {
            UpdateViewModel.CurrentUpdateViewModel.IsStatusDialogOpen = true;
        }

        private void CloseButton_Click(object sender, RoutedEventArgs e)
        {
            this.Close();
        }
    }
}
